package com.wmh.baseservice.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-10-26
 */
@ApiModel(value="UsJoinApply对象", description="用户加盟申请表")
public class UsJoinApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态:	0审核中	1已通过	-1已拒绝")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "用户id")
    private Long usId;

    @ApiModelProperty(value = "所属人姓名")
    private String name;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区/镇")
    private String area;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private String lat;

    @ApiModelProperty(value = "维度")
    private String lon;

    @ApiModelProperty(value = "手机号(将作为商家账号)")
    private String phone;

    @ApiModelProperty(value = "审核人id")
    private Long auditId;

    @ApiModelProperty(value = "拒绝原因")
    private String refuseReason;

    @ApiModelProperty(value = "审核时间")
    private Date auditTime;

    @ApiModelProperty(value = "0只可摘菜 1只可种菜 2全支持 3仅拼单商家")
    private Integer type;

    @ApiModelProperty(value = "是否有合伙人 0个体 1有合伙人")
    private Integer hasPartner;

    @ApiModelProperty(value = "合伙人信息json数组")
    private String partnerInfo;

    @ApiModelProperty(value = "店铺头像")
    private String shopStore;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @TableField(exist = false)
    private String nick;

    @TableField(exist = false)
    private String avatar;

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public Long getId() {
        return id;
    }

    public UsJoinApply setId(Long id) {
        this.id = id;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public UsJoinApply setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public UsJoinApply setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getVersion() {
        return version;
    }

    public UsJoinApply setVersion(Integer version) {
        this.version = version;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public UsJoinApply setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public UsJoinApply setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public Long getUsId() {
        return usId;
    }

    public UsJoinApply setUsId(Long usId) {
        this.usId = usId;
        return this;
    }
    public String getName() {
        return name;
    }

    public UsJoinApply setName(String name) {
        this.name = name;
        return this;
    }
    public String getProvince() {
        return province;
    }

    public UsJoinApply setProvince(String province) {
        this.province = province;
        return this;
    }
    public String getCity() {
        return city;
    }

    public UsJoinApply setCity(String city) {
        this.city = city;
        return this;
    }
    public String getArea() {
        return area;
    }

    public UsJoinApply setArea(String area) {
        this.area = area;
        return this;
    }
    public String getAddress() {
        return address;
    }

    public UsJoinApply setAddress(String address) {
        this.address = address;
        return this;
    }
    public String getLat() {
        return lat;
    }

    public UsJoinApply setLat(String lat) {
        this.lat = lat;
        return this;
    }
    public String getLon() {
        return lon;
    }

    public UsJoinApply setLon(String lon) {
        this.lon = lon;
        return this;
    }
    public String getPhone() {
        return phone;
    }

    public UsJoinApply setPhone(String phone) {
        this.phone = phone;
        return this;
    }
    public Long getAuditId() {
        return auditId;
    }

    public UsJoinApply setAuditId(Long auditId) {
        this.auditId = auditId;
        return this;
    }
    public String getRefuseReason() {
        return refuseReason;
    }

    public UsJoinApply setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
        return this;
    }
    public Date getAuditTime() {
        return auditTime;
    }

    public UsJoinApply setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
        return this;
    }
    public Integer getType() {
        return type;
    }

    public UsJoinApply setType(Integer type) {
        this.type = type;
        return this;
    }
    public Integer getHasPartner() {
        return hasPartner;
    }

    public UsJoinApply setHasPartner(Integer hasPartner) {
        this.hasPartner = hasPartner;
        return this;
    }
    public String getPartnerInfo() {
        return partnerInfo;
    }

    public UsJoinApply setPartnerInfo(String partnerInfo) {
        this.partnerInfo = partnerInfo;
        return this;
    }
    public String getShopStore() {
        return shopStore;
    }

    public UsJoinApply setShopStore(String shopStore) {
        this.shopStore = shopStore;
        return this;
    }
    public String getShopName() {
        return shopName;
    }

    public UsJoinApply setShopName(String shopName) {
        this.shopName = shopName;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String US_ID = "us_id";

    public static final String NAME = "name";

    public static final String PROVINCE = "province";

    public static final String CITY = "city";

    public static final String AREA = "area";

    public static final String ADDRESS = "address";

    public static final String LAT = "lat";

    public static final String LON = "lon";

    public static final String PHONE = "phone";

    public static final String AUDIT_ID = "audit_id";

    public static final String REFUSE_REASON = "refuse_reason";

    public static final String AUDIT_TIME = "audit_time";

    public static final String TYPE = "type";

    public static final String HAS_PARTNER = "has_partner";

    public static final String PARTNER_INFO = "partner_info";

    public static final String SHOP_STORE = "shop_store";

    public static final String SHOP_NAME = "shop_name";

    @Override
    public String toString() {
        return "UsJoinApply{" +
            "id=" + id +
            ", status=" + status +
            ", remark=" + remark +
            ", version=" + version +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", usId=" + usId +
            ", name=" + name +
            ", province=" + province +
            ", city=" + city +
            ", area=" + area +
            ", address=" + address +
            ", lat=" + lat +
            ", lon=" + lon +
            ", phone=" + phone +
            ", auditId=" + auditId +
            ", refuseReason=" + refuseReason +
            ", auditTime=" + auditTime +
            ", type=" + type +
            ", hasPartner=" + hasPartner +
            ", partnerInfo=" + partnerInfo +
            ", shopStore=" + shopStore +
            ", shopName=" + shopName +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            UsJoinApply.ID
            ,UsJoinApply.STATUS
            ,UsJoinApply.REMARK
            ,UsJoinApply.VERSION
            ,UsJoinApply.CREATE_TIME
            ,UsJoinApply.UPDATE_TIME
            ,UsJoinApply.US_ID
            ,UsJoinApply.NAME
            ,UsJoinApply.PROVINCE
            ,UsJoinApply.CITY
            ,UsJoinApply.AREA
            ,UsJoinApply.ADDRESS
            ,UsJoinApply.LAT
            ,UsJoinApply.LON
            ,UsJoinApply.PHONE
            ,UsJoinApply.AUDIT_ID
            ,UsJoinApply.REFUSE_REASON
            ,UsJoinApply.AUDIT_TIME
            ,UsJoinApply.TYPE
            ,UsJoinApply.HAS_PARTNER
            ,UsJoinApply.PARTNER_INFO
            ,UsJoinApply.SHOP_STORE
            ,UsJoinApply.SHOP_NAME
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}